Detect intensity of light